<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>挺赞社区管家</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
	<link rel="stylesheet" href="__PUBLIC__/client/css/cui.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/auntie/css/style.css?sj={$tj}" />
	<script type="text/javascript" src="__PUBLIC__/client/js/jquery.js"></script>
</head>
<body class="mhome">
	<div class="viewport">
        <!--<div class="sitemap">
            <a href="index.html" class="goback"></a>待收件
        </div>-->
        <!--end header-->
		<div id="bd" class="fix">
            <div class="box-make">
                <div class="con">
                    <div class="pic"><img src="{$uimg}" alt="" style="border-radius: 46px;width: 46px;height: 46px;overflow: hidden;"></div>
                    <div class="txt">
                        <h4>{$order.name}  {$order.phone}</h4>
                        <p>预约时间：{$order.addtime}</p>
                        <p>取送日期：{$order.pickup_date}</p>
                        <p>取送时间段：{$order.pickup_time}</p>
                    </div>
                    <a href="" class="dian"><img src="__PUBLIC__/client/images/hm-ico-{$order.wash_type}.png" alt=""></a>
                </div>
                <p style="margin-bottom: 30px; text-align: center;">Ta在：{$order.address}</p>
            </div>
            
            <h3 class="tit-make">预约了一次 <foreach name="entry" item="vo" > <if condition="$key eq $order['wash_type']"> {$vo} </if> </foreach> 服务 </h3>
            <a href="javascript:;" id="submitcl" data-orderid="{$order.orderid}" class="btn-round">立即<br>处理</a>
		</div>
		<!--end #bd-->
	</div>
	
	<script src="__PUBLIC__/business/js/normal.js?sj={$tj}"></script>
	<script>
		$(function(){
			//抢单
			$('#submitcl').on('click',function(){
				var orderid=$(this).attr("data-orderid");
				 var tourl="{:U('Auntie/api/qiangdan')}";
       			 var data={orderid:orderid};
       			 $.post(tourl,data,function(data){
       			 	//alert(data)
				    if(data.status!=1){
				    		Msg(data.msg,2);
				    }else{
				    		Msg(data.msg,1);
				    		setTimeout(function(){
							window.location.href="{:U('Auntie/index/order01')}";
						},1000);
				    }
				 });
			});
		});
	</script>
</body>
</html>